<?php
$like=isset($like)?' like \''.mysql_real_escape_string($like).'\'':'';
$q=$db->prepare("show tables$like");
$q->execute();
if($q->rowCount()){ while($row=$q->fetch())$funk($row); }
else if(isset($empty))echo$empty;

/*
unset($proc);
unset($q);
*/
?>